<?php

namespace platform\controllers;

use platform\core\BaseController;
use platform\interfaces\CarInterface;
use cm;
use platform\models\CarModel;

class CarController extends BaseController implements CarInterface
{
    function actionIndex()
    {
        $data = (new CarModel())->actionIndex();
        return Cm::$res->render($this, "index", $data, '车辆管理');
    }

    function actionModel()
    {
        $data = (new CarModel())->actionModel();
        return Cm::$res->render($this, "model", $data, '车型管理');
    }
}